package ophiux.alipay.template.test;

import ophiux.alipay.template.client.AlipayTemplateMessageParser;
import ophiux.alipay.template.client.IAlipayTemplateMessageParser;
import ophiux.alipay.template.request.MedicalRecordMessageTemplate;


public class test1 {
	public static void main(String[] args) {//2088012785939622
		IAlipayTemplateMessageParser parser = new AlipayTemplateMessageParser();
		
		MedicalRecordMessageTemplate dd=new MedicalRecordMessageTemplate();
		dd.setApp_id("2018081661070605");
		dd.setPrivateKey("MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCVQZF8MIy2cYuz6zU896VpDRuZKwhMMobJxeCjOmkzZwr16nUsMDOcQfcQ5AqZ+YJImhTEDRvPFLzBmt4la/8qLHkSPjxzmP/qP+IsPDpRdTT9RufAYbvBImmjrGzUUxUS6otjKN5E+pl/EN5u0ppPvSg+m6szicOvZKMQNi/rnCoSSVjJj9Itj2tiUIcFaLmvPI3V2kQD47tUmxlPRFZ7FjHskaN/pdVbr1ybCnjSzSvC0ZaMEXPvJ3wT+TbFN86dNRE0YTHG/T8kIADRU/qYPLSojuftHSZK2/C5PCClFp3ouXe3z6wib5GlyHDt2zwXLpul1+eThEWFjhTLMzXfAgMBAAECggEAIZ+/0qZtTLyPqFyYhb+Ud/IIAZ18JQ5M5y+4x4zlHjtccMH825OQTOdfbWKyMLXQ7+ImQ3Rgi2o0i7kDypJlzW5vZ/i1TaVuIat6nFSFHsy0v0o181URIxVJjyHM8pg06yoDdLdEO23pHoMCWR0Avm3ynwgarWWfu+eEBKbwbLdM78M+dJsmVZUVy2nos1lZROHkjDiggCneAtZUOrc2QFbI1+SDC/UC1YSuck5Ewajj1aSqPLql40UIjJiYRfqYW6lasguN1nDc/1nDD2wYZiI8M6PN9Dn5a7epCvJEhK3V8TZZ+8l8L/0I0+EBzaXU7GuvQUKmYwQVGsrM695XAQKBgQDa6SK91Hu+ayKJtqZvOEQjTfkDhFl3m6yHJ4+kBG1e+DipwWBOtOCFd4+EcX7JRsZ6dqtQVWKP82bmYelODIp+SxuVAzB8EJT4lYQtjptLRECOu1gF41wsI78nRVd3R1O/82aSDwiQ8F0ewYJLQR9DLaOe0na/GehoCWN4CJ1jYQKBgQCui0oCO91xCHyi9l42pM95fQWCcbvyv5DGyU1dRsHdgoAn2oGG/8JZw/Ni9wprOw6Szi/ZBSVyewrwhrGRN2nbe52AbvL7urrj/uuvCQfBh9GpHocaN6uEWo6ozy4e8jc0QYsFht73Ph6Av1gDKGfdr1dSU93epjuGZBnVK9BhPwKBgEmYkY6CbivBdvYXivLfVsELyMju6Ok2VBWILll1B5QjHWGs2oT7eHRGkuBzC639dmLbnJLAcgd1TEXt6vLLcpAtDhPV46oCJSNBmRN72ye9xXp274vjOSy5w90fCd3XBAgHe5dlKHsZ5CSf5/8G4MzD/js6BKQQwLqhVWiYdNlhAoGBAKWjV3NxPj8TL7wyksvGcYG4DC9zIUpHUuvigsF+8WD1hArOCFeFhPlMxD7pc4C5RaY5dxy7DoNqksIZAI9vh8yaragBIiOTW+Ibu6uapTqaWnPknY9avzDWA0XdfsYtVAgKHxT6ncMBt060xqAQiyjMSdC99/JfzGNHwWATuSdfAoGAWzUdr/U2mH9QiMrxRubC/K68Zb/I9YJ7Pgdt1SCRKoe3DWkxRvQKNtlTB15qH9uZM6viqqgSCOg7HgCvAjwa10vfRkY5oLl/Ky/s3/NAg7Eq5SHZXR729rNM/Wl8I3O/88OkJDrCUZjf2rUkHRcHcpgawJw8WT+a3e/lmuMOGjw=");
		dd.setTo_user_id("2088012785939622");
		dd.setTemplate_id("b9226c42c0e7402c9b6fb9bf2eabcb0e");
		dd.setUrl("");
		dd.setHead_color("#0066CC");
		dd.setAction_name("查看详情");
		
		dd.setTotalFee("800.00元");
		dd.setType("检查化验费");
		dd.setFirst("您申请打印的病历有新的动态");
		dd.setRemark("感觉你的使用。");
		
		
		String result="";
		try {
			result=parser.toJson(dd);
			System.out.println(result);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	

}
